<template>
  <div id="app">
    <!-- antdv国际化 -->
    <a-config-provider :locale="locale">
      <router-view />
    </a-config-provider>
  </div>
</template>
<script>
import zhCN from "ant-design-vue/lib/locale-provider/zh_CN";
import { mapActions } from "vuex";
export default {
  data() {
    return {
      locale: zhCN
    };
  },
  created() {
    this.setInitInfo();
  },
  methods: {
    ...mapActions({
      setInitInfo: "global/setSiteInitInfo"
    })
  }
};
</script>
